package com.hospital.hospitalsystem.modules.base.dao.mapper;

import com.hospital.hospitalsystem.modules.base.dao.entity.ProvinceEntity;
import com.hospital.hospitalsystem.modules.base.dto.ProvinceExt;
import com.hospital.hospitalsystem.modules.base.dto.ProvinceReq;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ProvinceMapper extends Mapper<ProvinceEntity> {
    List<ProvinceExt> getListProvince();

    List<ProvinceExt> getListArea(@Param("arg") ProvinceReq req);

    Integer haveCity(@Param("arg") ProvinceReq req);

    List<ProvinceExt> getListCity(@Param("arg") ProvinceReq req);

    List<ProvinceExt> getListTown(@Param("arg") ProvinceReq req);
}
